﻿<!DOCTYPE html>
<html lang="en">
<head>
    <title>宾果高校</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../css/sweetalert.min.css" />
    <script src="../js/jquery-1.12.2.min.js"></script>
    <script src="../js/common.js"></script>
    <script src="../js/login.js"></script>
    <script src="../js/layer.js"></script>
    <script src="../js/angular.min.js"></script>
    <script src="../js/Controller.js"></script>
    <script src="../js/sweetalert.min.js"></script>
</head>
<body>
    <div id="searchPage"></div>
    <div style="margin-top: 20px;" class="main">
        <div ng-app="myApp" class="wrap">
            <div class="togglebar">
                <ul class="nav nav-tabs nav-justified">
                    <li id="popWisdombox" class="active"><a id="popAuditsucc">智慧搭配社团</a></li>
                    <li id="popOptionalbox"><a id="popAuditing">自选社团</a></li>
                </ul>
            </div>
            <div style="margin-top: 5px;"></div>
            <div ng-controller="sysChooseAssocCtrl" id="wisdom-box">
                <table class="table table-hover">
                    <tr>
                        <td>赞助书名称</td>
                        <td>社团活动书的活动名称</td>
                        <td>社团名称</td>
                        <td>社团地区（省-市-学校）</td>
                        <td>社团级别</td>
                        <td>社团类型</td>
                        <td>社团星级</td>
                        <td>社团活动书</td>
                        <td>联系结果</td>
                        <td>联系时间</td>
                    </tr>
                    <tr ng-repeat="x in names">
                        <td>{{x.ProjectName}}</td>
                        <td>{{x.ProItem.ProjectSelf.ProjectName}}</td>
                        <td>{{x.ProItem.Association.Name}}</td>
                        <td>{{x.ProItem.Association.ProvinceName +'-' +x.ProItem.Association.CityName+'-'+ x.ProItem.Association.SchoolName}}</td>
                        <td>{{x.ProItem.Association.Nature}}</td>
                        <td>{{x.ProItem.Association.Type}}</td>
                        <td>{{x.ProItem.Association.AssociationGrade==1?"金牌社团":x.ProItem.Association.AssociationGrade==0?"普通社团":"代理社团"}}</td>
                        <td><a href="#" tag="{{x.ProItem.ProjectNOSelf}}" onclick="Go(this)">查看</a></td>
                        <td>{{x.ProItem.Status==0?"联系中":x.ProItem.Status==1?"成功":"失败"}}</td>
                        <td>{{x.ProItem.CreateTime | date:'yyyy-MM-dd'}}</td>
                    </tr>
                </table>
                <!--<div class="text-center">
                    <button type="button" class="btn btn-default">重新智慧搭配服务</button>
                </div>-->
            </div>
            <div ng-controller="selfChooseAssocCtrl" id="optional-box">
                <table class="table table-hover">
                    <tr>
                        <td>赞助书名称</td>
                        <td>社团活动书的活动名称</td>
                        <td>社团名称</td>
                        <td>社团地区</td>
                        <td>社团级别</td>
                        <td>社团类型</td>
                        <td>社团星级</td>
                        <td>社团活动书</td>
                        <td>联系结果</td>
                        <td>联系时间</td>
                    </tr>
                    <tr ng-repeat="x in names">
                        <td>{{x.ProItem.ProjectSelf.ProjectName}}</td>
                        <td>{{x.ProjectName}}</td>
                        <td>{{x.Association.Name}}</td>
                        <td>{{ x.Association.ProvinceName +'-' +x.Association.CityName+'-'+ x.Association.SchoolName}}</td>
                        <td>{{x.Association.Nature}}</td>
                        <td>{{x.Association.Type}}</td>
                        <td>{{x.Association.AssociationGrade==1?"金牌社团":x.Association.AssociationGrade==0?"普通社团":"代理社团"}}</td>
                        <td><a href="#" tag="{{x.ProjectNO}}" onclick="Go(this)">查看</a></td>
                        <td>{{x.ProItem.Status==0?"联系中":x.ProItem.Status==1?"成功":"失败"}}</td>
                        <td>{{x.ProItem.CreateTime | date:'yyyy-MM-dd'}}</td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</body>
</html>
<script>

    $("#searchPage").load("header.html", function () {
        SetCss("Spon");
    });

    function Go(obj) {

        var id = $(obj).attr("tag");

        layer.ready(function () {

            layer.open({
                type: 2,
                title: '宾果高校--社团活动书详情',
                fix: false,
                shadeClose: true,
                maxmin: false,
                area: ['1000px', '500px'],
                content: 'Message.html?mode=AssocBooks&id=' + id,
                end: function () {

                }
            });
        });
    }
</script>